<template>
  <div class="feature">
    <div class="feature-title">本周流行</div>
    <div class="feature-container">
      <div v-for="(item,index) of features" :key="index" class="feature-item">
        <img :src="item.image">
        <div>{{item.title}}</div>
      </div>

    </div>

  </div>
</template>

<script>
  export default {
    name: "FeatureView",
    props: {
      features: {
        type: Array,
        default: () => {
          return [];
        }
      }
    }
  }
</script>

<style scoped>
  .feature {
    margin-bottom: 8px;
    font-size: 12px;
  }

  .feature-title {
    width: 100%;
    font-size: 22px;
    color: #666666;
    font-weight: initial;
    height: 60px;
    text-align: center;
    line-height: 60px;
  }

  .feature img {
    width: 65px;
    border-radius: 16px;
    margin-bottom: 5px;
  }

  .feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .feature-item {
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }


</style>
